﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CommandDemo
{
    /// <summary>
    /// 接头负责人
    /// </summary>
    class Invoker
    {
        /// <summary>
        /// 根据命令执行方法
        /// </summary>
        public Group Group { get; set; }

        public Invoker(string str)
        {
            this.Command = str;
            this.Action();
        }
        /// <summary>
        /// 接受命令
        /// </summary>
        public string Command{ get; set; }
        /// <summary>
        /// 根据命令执行不同的动作
        /// </summary>
        public void Action()
        {
        }
    }
}
